package com.ukao.pad.widget;

import android.content.Context;
import android.util.AttributeSet;

import com.github.jdsjlzx.recyclerview.LRecyclerView;
import com.github.jdsjlzx.recyclerview.ProgressStyle;
import com.ukao.pad.R;


/**
 * Created by ukaodev on 2017/6/17.
 */

public class MyLRecyclerView extends LRecyclerView {
    public MyLRecyclerView(Context context) {
        this(context, null, 0);
        init(context);
    }

    public MyLRecyclerView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
        init(context);
    }

    public MyLRecyclerView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }



    private void init(Context context) {

      setRefreshProgressStyle(ProgressStyle.LineSpinFadeLoader);
       setLoadingMoreProgressStyle(ProgressStyle.LineSpinFadeLoader);
        setArrowImageView(R.mipmap.arrow);
         setFooterViewHint("拼命加载中","我是有底线的","网络不给力啊，点击再试一次吧");
        setFooterViewColor(R.color.load_hide, R.color.load_hide ,android.R.color.transparent);

    }
}
